package com.cskaoyan.shiro;

import lombok.Data;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @Author harvey
 * @description: 继承UsernamePasswordToken类，主要是用来加上type类型字段，以便分开处理管理员和用户登录
 * @Date 2021/7/11 11:26
 */
@Data
public class MallToken extends UsernamePasswordToken {
    String type;

    public MallToken(String username, String password, String type) {
        super(username, password);
        this.type = type;
    }

}
